<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QSizeGrip Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QSizeGrip Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QSizeGrip class provides a resize handle for resizing
top-level windows. <a href="#details">More...</a></p>

<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qsizegrip.html#QSizeGrip">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>)</li><li><div class="fn" />bool <b><a href="qsizegrip.html#event">event</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" />bool <b><a href="qsizegrip.html#eventFilter">eventFilter</a></b> (<i>self</i>, QObject, QEvent)</li><li><div class="fn" /><b><a href="qsizegrip.html#hideEvent">hideEvent</a></b> (<i>self</i>, QHideEvent&#160;<i>hideEvent</i>)</li><li><div class="fn" /><b><a href="qsizegrip.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QMouseEvent)</li><li><div class="fn" /><b><a href="qsizegrip.html#mousePressEvent">mousePressEvent</a></b> (<i>self</i>, QMouseEvent)</li><li><div class="fn" /><b><a href="qsizegrip.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qsizegrip.html#moveEvent">moveEvent</a></b> (<i>self</i>, QMoveEvent&#160;<i>moveEvent</i>)</li><li><div class="fn" /><b><a href="qsizegrip.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent)</li><li><div class="fn" /><b><a href="qsizegrip.html#setVisible">setVisible</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qsizegrip.html#showEvent">showEvent</a></b> (<i>self</i>, QShowEvent&#160;<i>showEvent</i>)</li><li><div class="fn" />QSize <b><a href="qsizegrip.html#sizeHint">sizeHint</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QSizeGrip class provides a resize handle for resizing
top-level windows.</p>
<p>This widget works like the standard Windows resize handle. In
the X11 version this resize handle generally works differently from
the one provided by the system if the X11 window manager does not
support necessary modern post-ICCCM specifications.</p>
<p>Put this widget anywhere in a widget tree and the user can use
it to resize the top-level window or any widget with the <a href="qt.html#WindowType-enum">Qt.SubWindow</a> flag set. Generally,
this should be in the lower right-hand corner. Note that <a href="qstatusbar.html">QStatusBar</a> already uses this widget, so if
you have a status bar (e.g., you are using <a href="qmainwindow.html">QMainWindow</a>), then you don't need to use
this widget explicitly.</p>
<p>On some platforms the size grip automatically hides itself when
the window is shown full screen or maximised.</p>
<table class="generic" width="50%">
<tr class="odd" valign="top">
<td><img alt="Screenshot of a Plastique style size grip" src="images/plastique-sizegrip.png" /></td>
<td>A size grip widget at the bottom-right corner of a main window,
shown in the <a href="gallery-plastique.html">Plastique widget
style</a>.</td>
</tr>
</table>
<p>The QSizeGrip class inherits <a href="qwidget.html">QWidget</a>
and reimplements the <a href="qwidget.html#mousePressEvent">mousePressEvent()</a> and <a href="qwidget.html#mouseMoveEvent">mouseMoveEvent()</a> functions to
feature the resize functionality, and the <a href="qwidget.html#paintEvent">paintEvent()</a> function to render the
size grip widget.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QSizeGrip" />QSizeGrip.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a resize corner as a child widget of the given
<i>parent</i>.</p>


<h3 class="fn"><a name="event" />bool QSizeGrip.event (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>


<h3 class="fn"><a name="eventFilter" />bool QSizeGrip.eventFilter (<i>self</i>, <a href="qobject.html">QObject</a>, <a href="qevent.html">QEvent</a>)</h3><p>Reimplemented from <a href="qobject.html#eventFilter">QObject.eventFilter</a>().</p>


<h3 class="fn"><a name="hideEvent" />QSizeGrip.hideEvent (<i>self</i>, <a href="qhideevent.html">QHideEvent</a>&#160;<i>hideEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#hideEvent">QWidget.hideEvent</a>().</p>


<h3 class="fn"><a name="mouseMoveEvent" />QSizeGrip.mouseMoveEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>)</h3><p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget.mouseMoveEvent</a>().</p>
<p>Resizes the top-level widget containing this widget. The mouse
move event is passed in the <i>event</i> parameter.</p>


<h3 class="fn"><a name="mousePressEvent" />QSizeGrip.mousePressEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>)</h3><p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget.mousePressEvent</a>().</p>
<p>Receives the mouse press events for the widget, and primes the
resize operation. The mouse press event is passed in the
<i>event</i> parameter.</p>


<h3 class="fn"><a name="mouseReleaseEvent" />QSizeGrip.mouseReleaseEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>mouseEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget.mouseReleaseEvent</a>().</p>


<h3 class="fn"><a name="moveEvent" />QSizeGrip.moveEvent (<i>self</i>, <a href="qmoveevent.html">QMoveEvent</a>&#160;<i>moveEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#moveEvent">QWidget.moveEvent</a>().</p>


<h3 class="fn"><a name="paintEvent" />QSizeGrip.paintEvent (<i>self</i>, <a href="qpaintevent.html">QPaintEvent</a>)</h3><p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget.paintEvent</a>().</p>
<p>Paints the resize grip.</p>
<p>Resize grips are usually rendered as small diagonal textured
lines in the lower-right corner. The paint event is passed in the
<i>event</i> parameter.</p>


<h3 class="fn"><a name="setVisible" />QSizeGrip.setVisible (<i>self</i>, bool)</h3><p>Reimplemented from <a href="qwidget.html#visible-prop">QWidget.setVisible</a>().</p>


<h3 class="fn"><a name="showEvent" />QSizeGrip.showEvent (<i>self</i>, <a href="qshowevent.html">QShowEvent</a>&#160;<i>showEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#showEvent">QWidget.showEvent</a>().</p>


<h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QSizeGrip.sizeHint (<i>self</i>)</h3><p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget.sizeHint</a>().</p>


<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.9.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2011</td><td align="right" width="25%">Qt&#160;4.8.0</td></tr></table></div></address></body></html>